package com.jinghua.treatment.service.impl;

import com.jinghua.treatment.entity.SysAndrology;
import com.jinghua.treatment.mapper.SysAndrologyMapper;
import com.jinghua.treatment.service.SysAndrologyService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * 男科业务接口实现类
 * Created by 王兴光 on 2018/3/26.
 */
@Service("andrologyService")
public class SysAndrologyServiceImpl implements SysAndrologyService {

    @Resource
    private SysAndrologyMapper andrologyMapper;

    @Override
    public SysAndrology selectByPrimaryKey(Integer andrologyId) {
        return andrologyMapper.selectByPrimaryKey(andrologyId);
    }

    @Override
    @Transactional
    public int insert(SysAndrology record) {
        return andrologyMapper.insert(record);
    }

    @Override
    @Transactional
    public int updateByPrimaryKey(SysAndrology record) {
        return andrologyMapper.updateByPrimaryKey(record);
    }
}
